package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.Zwryqk;
import com.ruoyi.system.domain.ZwryqkSelect;
import org.apache.ibatis.annotations.Param;

/**
 * zwryqkMapper接口
 * 
 * @author ruoyi
 * @date 2021-10-28
 */
public interface ZwryqkMapper 
{
    /**
     * 查询zwryqk
     * 
     * @param id zwryqkID
     * @return zwryqk
     */
    public Zwryqk selectZwryqkById(String id);

    /**
     * 查询zwryqk列表
     * 
     * @param zwryqk zwryqk
     * @return zwryqk集合
     */
    public List<Zwryqk> selectZwryqkList(Zwryqk zwryqk);

    /**
     * 查询用户指定日期zwryqk
     *
     * @param userid userid
     * @param liningtime liningtime
     * @return List<String>
     */
    public List<String> selectZwryqkByUserIdAndLiningtime(@Param("userid") String userid,@Param("liningtime") String liningtime);

    /**
     * 新增zwryqk
     * 
     * @param zwryqk zwryqk
     * @return 结果
     */
    public int insertZwryqk(Zwryqk zwryqk);

    /**
     * 修改zwryqk
     * 
     * @param zwryqk zwryqk
     * @return 结果
     */
    public int updateZwryqk(Zwryqk zwryqk);

    /**
     * 删除zwryqk
     * 
     * @param id zwryqkID
     * @return 结果
     */
    public int deleteZwryqkById(String id);

    /**
     * 批量删除zwryqk
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteZwryqkByIds(String[] ids);

    List<Map<String,Object>>selectCustomZwryqkList(ZwryqkSelect zwryqk);

    public int updateShixiaoByUserId(@Param("userid")String userid,@Param("shijian")String shijian);

    public int updateShixiaoByUserIdAndTime(@Param("userid")String userid,@Param("chuangjiantime")String chuangjiantime);

    public Map<String,Object>selectLatestTime(@Param("userid")String userid);

    public Map<String,Object>selectChuanjianTime(@Param("userid")String userid,@Param("shijian")String shijian);
}
